﻿#pragma once
#ifndef _DETECTTEST_H_
#define _DETECTTEST_H_


#include <iostream>
#include <vector>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"

class detecttest {
public:

	void Init(cv::Mat picture);

//	std::vector<double> detect(cv::Mat picture);

	void detect(cv::Mat picture, std::vector<std::vector <double> > &pixels);




private:

	int iLowH = 0;
	int iHighH = 179;

	int iLowS = 141;
	int iHighS = 255;

	int iLowV = 115;
	int iHighV = 210;

	int iLastX = -1;
	int iLastY = -1;

	cv::Mat imgTmp;
	cv::Mat imgLines;

	int exetime = 0;
};

#endif